<?php

require_once './request_post.php';

function send_text($content, $mentioned_mobile_list, $url)
{
    $post_data = array(
        "msgtype" => "text",
        "text" => array(
            "content" => $content,
            "mentioned_mobile_list" => $mentioned_mobile_list,
        ),
    );
    $res = request_post(json_encode($post_data, '320'), 'json', $url);
    // print_r($res);
    return $res;
}

function send_markdown($content, $url)
{
    $post_data = array(
        "msgtype" => "markdown",
        "markdown" => array(
            "content" => $content
        ),
    );
    $res = request_post(json_encode($post_data, '320'), 'json', $url);
    // print_r($res);
    return $res;
}
